All Packages Class Hierarchy This Package Previous Next Index
Class sun.servlet.ServletLoader
java.lang.Object
|
+----java.lang.ClassLoader
|
+----sun.servlet.ServletLoader
- public class ServletLoader
- extends ClassLoader
ClassLoader for loading servlet classes. The classes are loaded from
the directory specified when the ServletLoader is created.
-
classes
-
-
dir
-
-
servlets
-
-
ServletLoader(String)
-
-
getServlets()
-
-
loadClass(String, boolean)
- Returns the Class for the specified class name.
-
loadClass(String, String)
-
-
loadServlet(String, ServletConfig)
-
classes
protected Hashtable classes
servlets
protected Hashtable servlets
dir
protected String dir
ServletLoader
public ServletLoader(String dir)
loadServlet
public synchronized Servlet loadServlet(String name,
ServletConfig conf) throws ServletException
getServlets
public Enumeration getServlets()
loadClass
protected synchronized Class loadClass(String name,
boolean resolve) throws ClassNotFoundException
- Returns the Class for the specified class name.
- Parameters:
- name - the class name
- resolve - if true then resolve Class
- Returns:
- the resulting Class
- Throws: ClassNotFoundException
- if the class file cannot be found
- Overrides:
- loadClass in class ClassLoader
loadClass
protected Class loadClass(String name,
String dir)
All Packages Class Hierarchy This Package Previous Next Index